<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <title>Title</title>
    <style>
        body {
            font-family: SimSun;
        }

        @page {
            size: A4;
            margin: 2mm 3mm 0mm 4mm;
        }
    </style>
</head>

<body>
<#escape x as x?html>
    <#assign bval=0>
    <#assign defultFg="___">
    <!-- 全局 -->
    <#assign ptVal=1>
    <#assign fgfVal=6>
    <#assign totalWidth=565>
    <#assign totalHeight=815>

    <!-- 长短 宽度 -->
    <#assign cdWidth=116>
    <#assign chjDdHeight=80>
    <!-- 长盒脊 高度-->
    <#assign chjHeight=500>
    <#assign chjColSpanHeight=50>
    <#assign chjDdHeight=80>
    <!-- 短盒背 高度-->
    <#assign dhbColSpanHeight=38>
    <#assign dhbDdHeight=52>
    <#assign dhbHeight=dhbColSpanHeight*12 + dhbDdHeight>

    <!-- 右侧总宽度 -->
    <#assign youceWidth= totalWidth - cdWidth - fgfVal>
    <!-- 二维码 宽度 -->
    <#assign ewmWidth= totalWidth - cdWidth*2 - fgfVal>
    <#assign ewmColWidth=72>
    <#assign ewmColHeight=31>
    <!-- 二维码 图 宽高 -->
    <#assign ewmTColWH=75>

    <!-- 封面宽高 -->
    <#assign fmWidth= totalWidth - cdWidth - fgfVal>
    <!-- 封面高度-总高度-（13*格 + 其中一格特别高的数值）- 一分隔行高度 -->
    <#assign fmHeight= totalHeight - (12*dhbColSpanHeight) - dhbDdHeight - fgfVal>
    <#assign fmColHeight= fmHeight/4 >
    <!-- 封面表格列宽-->
    <#assign fmCol1Width= 100>
    <#assign fmCol2Width= 96>
    <#assign fmCol3Width= 70>


    <!-- 右边内容 高度-->

    <!-- 会计区间取值 -->
    <#assign period = cover.period?split("-") >
    <#assign periodYear = defultFg >
    <#assign periodMonth = defultFg >
    <#if ( period?size > 1) >
        <#assign periodYear = period[0] >
        <#assign periodMonth = period[1]>
    </#if>



    <!-- 立卷日期取值 -->
    <#assign filing = cover.filingDate?split("-") >
    <#assign filingYear = defultFg >
    <#assign filingMonth = defultFg >
    <#assign filingDay = defultFg >
    <#if ( filing?size > 1)>
        <#assign filingYear = filing[0] >
        <#assign filingMonth = filing[1]>
        <#assign filingDay = filing[2]>
    </#if>

    <#assign ajhVal1= "__________">
    <#assign ajhVal2= "___">
    <#if cover.paperFileNo?exists && cover.paperFileNo != "">
        <#assign ajhVal1= cover.paperFileNo>
        <#assign ajhVal2= cover.paperFileNo>
    </#if>
<#--    <#assign ybHeight=280.2>-->

    <table width="${totalWidth * ptVal}pt" height="${totalHeight * ptVal}pt" border="${bval}" cellspacing="0" cellpadding="0">
        <tr>
            <!-- 长盒脊   begin   -->
            <td width="${cdWidth * ptVal}pt" height="${totalHeight * ptVal}pt"  valign="top" >
                <table width="100%" border="1" cellspacing="0" cellpadding="0" style="text-align:center">
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >全&nbsp;宗&nbsp;号</th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >${ridge.fondNo}</th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >案&nbsp;卷&nbsp;号</th>
                    </tr>
                    <tr>
                        <!-- todo -->
                        <#--                        <th height="${chjColSpanHeight * ptVal}pt" >_横_${cdWidth * ptVal}_竖_${totalHeight * ptVal}_</th>-->
                        <th height="${dhbColSpanHeight * ptVal}pt" >
                            ${ajhVal1}
                        </th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >公&nbsp;&nbsp;&nbsp;&nbsp;司</th>
                    </tr>
                    <tr>
                        <th height="${chjDdHeight * ptVal}pt" >${cover.archivesCenterNo}</th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >类&nbsp;&nbsp;&nbsp;&nbsp;别</th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >${cover.catalogNo}</th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >${periodYear}年</th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >${periodMonth}月</th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >第___册</th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >保管期限</th>
                    </tr>
                    <tr>
                        <th height="${chjColSpanHeight * ptVal}pt" >${cover.storageTime}</th>
                    </tr>
                </table>
            </td>
            <!-- 长盒脊   =end=   -->

            <td width="${fgfVal}pt"></td>

            <!-- 短盒背/归档/二维码/封面   begin   -->
            <td width="${youceWidth * ptVal}pt" height="${totalHeight * ptVal}pt"  valign="top" >
                <table width="100%"  height="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr height="${dhbHeight * ptVal}pt">
                        <!-- 短盒背   begin   -->
                        <th width="${cdWidth * ptVal}pt">
                            <table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0" style="text-align:center">
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >全&nbsp;宗&nbsp;号</th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >${ridge.fondNo}</th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >案&nbsp;卷&nbsp;号</th>
                                </tr>
                                <tr>
                                    <!-- todo -->
                                    <#--                                    <th height="${dhbColSpanHeight * ptVal}pt" >_横_${cdWidth * ptVal}_竖_${dhbHeight * ptVal}_</th>-->
                                    <th height="${dhbColSpanHeight * ptVal}pt" >
                                        ${ajhVal1}
                                    </th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >公&nbsp;&nbsp;&nbsp;&nbsp;司</th>
                                </tr>
                                <tr>
                                    <th height="${dhbDdHeight * ptVal}pt" >${cover.archivesCenterNo}</th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >类&nbsp;&nbsp;&nbsp;&nbsp;别</th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >${cover.catalogNo}</th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >${periodYear}年</th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >${periodMonth}月</th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >第___册</th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >保管期限</th>
                                </tr>
                                <tr>
                                    <th height="${dhbColSpanHeight * ptVal}pt" >${cover.storageTime}</th>
                                </tr>
                            </table>
                        </th>
                        <!-- 短盒背   =end=   -->


                        <th width="${fgfVal}pt"></th>


                        <!-- 归档/二维码   begin   -->
                        <th width="${ewmWidth * ptVal}pt"  valign="top">
                            <table width="100%" height="100%" border="${bval}" cellspacing="0" cellpadding="0" style="text-align:center">
                                <tr >
                                    <td valign="top" height="${ewmColHeight*2 * ptVal}pt">
                                        <table  border="1" cellspacing="0" cellpadding="0">
                                            <tr >
                                                <th width="${ewmColWidth * ptVal}pt" height="${ewmColHeight * ptVal}pt">全宗号</th>
                                                <th width="${ewmColWidth * ptVal}pt">目录号</th>
                                                <th width="${ewmColWidth * ptVal}pt">案卷号</th>
                                            </tr>
                                            <tr >
                                                <th height="${ewmColHeight * ptVal}pt">${cover.fondNo}</th>
                                                <!-- todo -->
                                                <#--<th >横_${ewmColWidth * 3 * ptVal}</th>
                                                <th >竖_${ewmColHeight * 2 * ptVal}</th>-->
                                                <th >___</th>
                                                <th >
                                                    ${ajhVal2}
                                                </th>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr >
                                    <td height="${fgfVal}pt"></td>
                                </tr>
                                <tr>
                                    <td valign="top" >
                                        <table border="0" cellspacing="0" cellpadding="0" <#--style="text-align:center"-->>
                                            <tr>
                                                <th valign="top" style="width:${ewmTColWH * ptVal}pt;height:${ewmTColWH * ptVal}pt;">
                                                    <img style="height:75pt;" src="${cover.qrCode}" />
                                                </th>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </th>
                        <!-- 归档/二维码   =end=   -->
                    </tr>

                    <tr style=" line-height: ${fgfVal}pt">
                        <td colspan="3">&nbsp;</td>
                    </tr>

                    <!-- 封面   begin   -->
                    <tr>
                        <td colspan="3" width="${fmWidth * ptVal}pt" height="${fmHeight * ptVal}pt"  valign="top">
                            <table width="100%" height="100%" border="1" cellspacing="0" cellpadding="0" style="text-align:center">
                                <tr>
                                    <th height="${fmColHeight * ptVal}pt">单位名称</th>
                                    <th width="${fmCol1Width + 2 * fmCol3Width}pt"  colspan="3">${cover.archivesCenterName!}</th>
                                    <th>类&nbsp;&nbsp;&nbsp;&nbsp;别</th>
                                    <th>${cover.catalogNo!}</th>
                                </tr>
                                <tr>
                                    <th height="${fmColHeight * ptVal}pt">时&nbsp;&nbsp;&nbsp;&nbsp;间</th>
                                    <th colspan="5">
                                        <!-- todo -->
                                        <#--                                        _横_${fmWidth * ptVal}___竖_${fmHeight * ptVal}_<br/>-->
                                        ${periodYear}年&nbsp;${periodMonth}月共___册&nbsp;&nbsp;本盒装第___册 </th>
                                </tr>
                                <tr>
                                    <th height="${fmColHeight * ptVal}pt">起止日期</th>
                                    <th colspan="5">自${filingYear}年${filingMonth}月${filingDay}日起至${filingYear}年${filingMonth}月${filingDay}日止</th>
                                </tr>
                                <tr>
                                    <th width="${fmCol2Width}pt" height="${fmColHeight * ptVal}pt" >归档日期</th>
                                    <th width="${fmCol1Width}pt">${cover.filingDate}</th>
                                    <th width="${fmCol3Width}pt">立卷人</th>
                                    <th width="${fmCol3Width}pt">${cover.filingPersonName}</th>
                                    <th width="${fmCol2Width}pt">保管期限</th>
                                    <th width="${fmCol3Width}pt">${cover.storageTime}</th>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <!-- 封面   =end=   -->
                </table>
            </td>
            <#--<td width="${ptVal * 2}pt">&nbsp;</td>-->
            <!-- 短盒背/归档/二维码/封面   =end=   -->
        </tr>
        <#-- <tr  style=" line-height: ${ptVal * 2}pt">
             <td colspan="5">&nbsp;</td>
         </tr>-->
    </table>
</#escape>
</body>

</html>